package 顺序表;

public class MyArrayListDemo {
    public static void main(String[] args) {
        MyList list = new MyArrayList();
        System.out.println(list);
        list.add(1);
        list.add(2);
        list.add(3);
        System.out.println(list);
        list.add(0, 100);
        System.out.println(list);
        list.add(4,200);
        System.out.println(list);

        Integer remove = list.remove(0);
        System.out.println(remove);
        System.out.println(list);

        list.remove((Integer) 200);
        System.out.println(list);

        System.out.println(list.size());
        System.out.println(list.set(0, 100));
        System.out.println(list);
        System.out.println(list.isEmpty());
    }
}
